package com.csy.basethread;

import com.csy.util.ILogFactory;
import org.junit.Test;

public class Test005 implements ILogFactory {
    @Test
    public void main() {
        Thread thread = new Thread(() -> {
            for (int i = 0; i < 60; i++) {
                log.info("子线程1-i:{}", i);
            }
        });
        thread.start();
        try {
            thread.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        for (int i = 0; i < 30; i++) {
            log.info("主线程 i:{}", i);
        }
    }
}
